package Practice;
import java.util.Scanner;
public class FindTheFcatorial {
    public static int FindFactorial(int N){
        if(N==1)return 1;
        return  N*FindFactorial(N-1);
    }

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        System.out.println(FindFactorial(scan.nextInt()));
    }
}
